let mainurl="http://localhost:8080/projectfirst/AddressServlet"
$.ajaxSetup({
    async:false
})

$(function () {
    let app=new Vue({
        el:"#app",
        data:{
        alist:selectAddress(),
        mainurl:mainurl
        }
    })
})
function selectAddress() {//根据用户id获取地址信息
    var temp
    $.getJSON(mainurl,{"type":"select"},function (data) {
     temp=data.data

    })
    return temp
}
function add() {
    document.getElementById("div1").removeAttribute('hidden')
    document.getElementById("div2").removeAttribute('hidden')
}